home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / C and C++ / Libraries / File class library / sources / launch.c < prev   
Text File  |  1992-09-14  |  393b  |  31 lines

  1.  
  2.  
  3. #ifdef _Launch
  4.  
  5. pascal void DoLaunch (StringPtr application, short code);
  6.  
  7.  
  8. pascal void DoLaunch (StringPtr application, short code)
  9. {
  10.     struct
  11.     {
  12.         StringPtr    name;
  13.         short            memoryCode;
  14.         char            parameters[2];
  15.         long            extensionLength;
  16.         short            finderFlags;
  17.         long            launchFlags;
  18.     } data;
  19.     
  20.     
  21.     data.name= application;
  22.     data.launchFlags= code;
  23.     
  24.     asm
  25.     {
  26.         lea        data, A0
  27.         Launch
  28.     }
  29. }
  30.  
  31. #endif